package com.jyxd.web.data.czform;


import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * ECMO记录单
 */
@Entity
@Table(name = "table_ecmo_record")
@Data
public class ECMORecord implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 患者id
     */
    @Column(name = "patient_id")
    private String patientId;


    /**
     * 时间
     */
    @Column(name = "date_time")
    private Date dateTime;

    /**
     * 转速
     */
    @Column(name = "speed")
    private String speed;

    /**
     * 流量L/min
     */
    @Column(name = "flow")
    private String flow;

    /**
     * 氧气流量
     */
    @Column(name = "oxygen_flow")
    private String oxygenFlow;

    /**
     * 氧浓度
     */
    @Column(name = "oxygen_concentration")
    private String oxygenConcentration;

    /**
     * PaO2
     */
    @Column(name = "pao2")
    private String pao2;

    /**
     * PaCO2
     */
    @Column(name = "paco2")
    private String paco2;

    /**
     * 心率
     */
    @Column(name = "lac")
    private String lac;

    /**
     * Hb
     */
    @Column(name = "hb")
    private String hb ;

    /**
     * Plt
     */
    @Column(name = "plt")
    private String plt ;

    /**
     * Tbil
     */
    @Column(name = "tbil")
    private String tbil ;

    /**
     * ACT
     */
    @Column(name = "act")
    private String act ;

    /**
     * APTT
     */
    @Column(name = "aptt")
    private String aptt ;

    /**
     * 肝素用量
     */
    @Column(name = "heparin")
    private String heparin ;

    /**
     * 去甲肾ml/h
     */
    @Column(name = "kidney")
    private String kidney ;

    /**
     * 多巴胺ml/h
     */
    @Column(name = "dopamine")
    private String dopamine ;

    /**
     * 硝酸甘油ml/h
     */
    @Column(name = "glonoin")
    private String glonoin ;

    /**
     * 硝普钠ml/h
     */
    @Column(name = "nitroprusside")
    private String nitroprusside ;

    /**
     * EF值
     */
    @Column(name = "ef")
    private String ef ;

    /**
     * 心排量CO
     */
    @Column(name = "cardiac_output ")
    private String cardiacOutput ;

    /**
     * 出量合计
     */
    @Column(name = "output_total")
    private String outputTotal ;

    /**
     * 24h入量
     */
    @Column(name = "input_oneday")
    private String inputOneday ;

    /**
     * 24h入量
     */
    @Column(name = "output_oneday")
    private String outputOneday ;

    /**
     * 签名
     */
    @Column(name = "signature")
    private String signature ;

    /**
     * 状态(0：禁用 1：启用 -1：删除)
     */
    @Column(name = "status")
    private Integer status;

    @Transient
    private List<ECMOOutput> ecmoOutputList ;

}
